﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace pipeCore.Pipes.Ports
{
    /// <summary>
    /// Impellent the inport port functionality
    /// </summary>
    public interface Iinport : IPort
    {
        /// <summary>
        /// Called when a message is ready inside this port
        /// </summary>
        event EventHandler<OnMessageRecivedEventArg> OnMessageRecive;
        /// <summary>
        /// Start the listening cycle
        /// </summary>
        void Listen();
    }
}
